-
Notifications
You must be signed in to change notification settings - Fork 235
feat: adding code for release v0.8.0 of CV-CUDA #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
class OpAsImageFromNVCVImage(AbstractOpBase): | ||
def setup(self, input): | ||
# dummy run that does not use cache | ||
img = nvcv.Image((128, 128), nvcv.Format.RGBA8) |
Check warning
Code scanning / CodeQL
Variable defined multiple times
def setup(self, input): | ||
# dummy run that does not use cache | ||
nvcv.ImageBatchVarShape(100) | ||
img = nvcv.Image((128, 128), nvcv.Format.RGBA8) |
Check warning
Code scanning / CodeQL
Variable defined multiple times
|
||
# NOTE: One must import PyCuda driver first, before CVCUDA or VPF otherwise | ||
# things may throw unexpected errors. | ||
import pycuda.driver as cuda # noqa: F401 |
Check notice
Code scanning / CodeQL
Unused import
|
||
# NOTE: One must import PyCuda driver first, before CVCUDA or VPF otherwise | ||
# things may throw unexpected errors. | ||
import pycuda.driver as cuda # noqa: F401 |
Check notice
Code scanning / CodeQL
Unused import
|
||
# NOTE: One must import PyCuda driver first, before CVCUDA or VPF otherwise | ||
# things may throw unexpected errors. | ||
import pycuda.driver as cuda # noqa: F401 |
Check notice
Code scanning / CodeQL
Unused import
pass | ||
|
||
if is_positive_test: | ||
assert out1.layout == out_layout |
Check failure
Code scanning / CodeQL
Potentially uninitialized local variable
pass | ||
|
||
if is_positive_test: | ||
assert out1.layout == out_layout |
Check failure
Code scanning / CodeQL
Potentially uninitialized local variable
Signed-off-by: Miles Price <[email protected]>
Signed-off-by: Miles Price <[email protected]>
Adding code for release v0.8.0 of CV-CUDA